home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_45494.txt < prev    next >
Text File  |  1991-02-27  |  1KB  |  35 lines

  1. -- card: 45494 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 4
  9. ----- text -----
  10. EXPRESSIONS & PRECEDENCE
  11.  
  12. C expressions occur as assignments, function arguments, and as part of other statements discussed in Chapter 6.
  13.  
  14. All C operators ΓÇö including the assignment '=' and logical operators ΓÇö can be mixed freely in expressions (with appropriate type conversion).  This affords great flexibility in program style and structure, although care must be exercised to avoid excessively complex constructs which may lead to programming errors and obscure code.
  15.  
  16. The associativity of most operators is left to right, with the exception of the assignment operators.
  17.  
  18. The order of evaluation of operators within an expression is given in the following chart (adapted from Kernighan and Ritchie's*) although parentheses can be used to force the desired order of evaluation.
  19.  
  20.  
  21. -- part contents for background part 7
  22. ----- text -----
  23. 140
  24.  
  25. -- part contents for background part 29
  26. ----- text -----
  27. 2231
  28.  
  29. -- part contents for background part 27
  30. ----- text -----
  31. Bibliography
  32.  
  33. -- part contents for background part 20
  34. ----- text -----
  35. Bibliography - p221